package com.lemote.dao.order;

import java.util.List;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Component;

import com.lemote.entity.OrderEntity;
import com.lemote.entity.PackageBox;
import com.lemote.orm.hibernate.HibernateDao;

/**
 * 
 * @author slaton.wu@gmail.com
 * @version 1.0
 * @created 2011-7-31 下午10:02:08
 */
@Component
public class PackAgeBoxDao extends HibernateDao<PackageBox, Long> {

	
	 
	public List<PackageBox> getPackAgeBoxList(OrderEntity orderEntity) {
		
		return getSession().createCriteria(PackageBox.class).add(Restrictions.eq("orderEntity", orderEntity)).list();
	}

}
